package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * EipNoticeInfoEmployeeReaderId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfoEmployeeReaderId implements java.io.Serializable {

	// Fields

	private Long nirid;
	private String niid;
	private Integer ueId;
	private Timestamp readdate;

	// Constructors

	/** default constructor */
	public EipNoticeInfoEmployeeReaderId() {
	}

	/** minimal constructor */
	public EipNoticeInfoEmployeeReaderId(Long nirid, String niid, Integer ueId) {
		this.nirid = nirid;
		this.niid = niid;
		this.ueId = ueId;
	}

	/** full constructor */
	public EipNoticeInfoEmployeeReaderId(Long nirid, String niid, Integer ueId,
			Timestamp readdate) {
		this.nirid = nirid;
		this.niid = niid;
		this.ueId = ueId;
		this.readdate = readdate;
	}

	// Property accessors

	public Long getNirid() {
		return this.nirid;
	}

	public void setNirid(Long nirid) {
		this.nirid = nirid;
	}

	public String getNiid() {
		return this.niid;
	}

	public void setNiid(String niid) {
		this.niid = niid;
	}

	public Integer getUeId() {
		return this.ueId;
	}

	public void setUeId(Integer ueId) {
		this.ueId = ueId;
	}

	public Timestamp getReaddate() {
		return this.readdate;
	}

	public void setReaddate(Timestamp readdate) {
		this.readdate = readdate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfoEmployeeReaderId))
			return false;
		EipNoticeInfoEmployeeReaderId castOther = (EipNoticeInfoEmployeeReaderId) other;

		return ((this.getNirid() == castOther.getNirid()) || (this.getNirid() != null
				&& castOther.getNirid() != null && this.getNirid().equals(
				castOther.getNirid())))
				&& ((this.getNiid() == castOther.getNiid()) || (this.getNiid() != null
						&& castOther.getNiid() != null && this.getNiid()
						.equals(castOther.getNiid())))
				&& ((this.getUeId() == castOther.getUeId()) || (this.getUeId() != null
						&& castOther.getUeId() != null && this.getUeId()
						.equals(castOther.getUeId())))
				&& ((this.getReaddate() == castOther.getReaddate()) || (this
						.getReaddate() != null
						&& castOther.getReaddate() != null && this
						.getReaddate().equals(castOther.getReaddate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getNirid() == null ? 0 : this.getNirid().hashCode());
		result = 37 * result
				+ (getNiid() == null ? 0 : this.getNiid().hashCode());
		result = 37 * result
				+ (getUeId() == null ? 0 : this.getUeId().hashCode());
		result = 37 * result
				+ (getReaddate() == null ? 0 : this.getReaddate().hashCode());
		return result;
	}

}